<template>
  <div>
    <el-date-picker
      v-model="value1"
      type="datetime"
      value-format="yyyy-MM-dd"
      placeholder="选择日期时间">
    </el-date-picker>
  </div>
</template>

<script>
export default {
  data(){
    return{
      value1:'2021-09-18',
    }
  },
  watch:{
    value1(){
      console.log(this.value1);
    }
  }
}
</script>